from app.utilities.exceptions import AppException



class Error:
    @staticmethod
    def bad_request(msg="Bad request"):
        return AppException(400, msg)

    @staticmethod
    def unauthorized(msg="Unauthorized"):
        return AppException(401, msg)

    @staticmethod
    def not_found(msg="Not found"):
        return AppException(404, msg)
